<?php /* Smarty version 2.6.26, created on 2014-01-21 15:18:21
         compiled from realname.html */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<div class="main fn-clear">
    	<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "safe_menu.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

        <div class="safe-content fn-left">
        	<h1>实名认证</h1>
            <?php if ($this->_tpl_vars['certed'] == 0): ?>
            <form id="certificate_form" action="index.php?c=index&a=submit_cert" method="post">
            <table class="edit-tab" style="width:700px">
            	<tr>
                    <input type="hidden" name="encrypt_code" value="<?php echo $this->_tpl_vars['encrypt_code']; ?>
"/>
                	<td align="right"><em>*</em>真实姓名/企业名称：</td>
                	<td><input name="realname" type="text" /></td>
                </tr>
            	<tr>
               	  	<td align="right"><em>*</em>身份证号/企业经营许可证编号：</td>
                	<td><input type="text" name="id_card"/></td>
                </tr>
            	<tr>
               	  	<td align="right"><em>*</em>身份证正面/企业证件：</td>
                	<td><input type="hidden" name="id_positive"  id="id_positive"><iframe id="if_positive" src="index.php?c=index&a=upload_page&face=positive" frameborder="0" scrolling="no" width="380" height="35"></iframe></td>
                </tr>
            	<tr>
                	<td align="right"><em>*</em>身份证背面：</td>
                	<td><input type="hidden" name="id_back" id="id_back"><iframe id="if_back" src="index.php?c=index&a=upload_page&face=back" frameborder="0" scrolling="no" width="380" height="35"></iframe></td>
                </tr>
                <tr>
                	<td></td>
                    <td><h4><span class="red">企业请上传企业经营许可证，税务登记证，组织机构代码证任选其一</span><br />证件必须是清晰彩色原件电子版，可以是扫描件或者数码拍摄照片。<br />照片中需要能看清姓名、身份证号码等信息。<br />仅支持.jpg .jpeg .bmp 的图片格式。图片大小不超过2M。</h4></td>
                </tr>
            	<tr>
                	<td align="right"></td>
                	<td><a href="javascript:void(0);" class="btn-orange" id="submit_cert">提交</a></td>
                </tr>
            </table>
            </form>
            <?php elseif ($this->_tpl_vars['certed'] == 1): ?>
            <p>审核中，我们会在一个工作日内审核完毕。。。。</p>
            <?php elseif ($this->_tpl_vars['certed'] == 3): ?>
            <p>审核未通过：<?php echo $this->_tpl_vars['rs']['reject_note']; ?>
。在下面重新申请</p>

            <form id="certificate_form" action="index.php?c=index&a=submit_cert" method="post">
            <table class="edit-tab" style="width:700px">
                <tr>
                    <input type="hidden" name="encrypt_code" value="<?php echo $this->_tpl_vars['encrypt_code']; ?>
"/>
                    <td align="right"><em>*</em>真实姓名/企业名称：</td>
                    <td><input name="realname" type="text" /></td>
                </tr>
                <tr>
                    <td align="right"><em>*</em>身份证号/企业经营许可证编号：</td>
                    <td><input type="text" name="id_card"/></td>
                </tr>
                <tr>
                    <td align="right"><em>*</em>身份证正面/企业证件：</td>
                    <td><input type="hidden" name="id_positive"  id="id_positive"><iframe id="if_positive" src="index.php?c=index&a=upload_page&face=positive" frameborder="0" scrolling="no" width="380" height="35"></iframe></td>
                </tr>
                <tr>
                    <td align="right"><em>*</em>身份证背面：</td>
                    <td><input type="hidden" name="id_back" id="id_back"><iframe id="if_back" src="index.php?c=index&a=upload_page&face=back" frameborder="0" scrolling="no" width="380" height="35"></iframe></td>
                </tr>
                <tr>
                    <td></td>
                    <td><h4><span class="red">企业请上传企业经营许可证，税务登记证，组织机构代码证任选其一</span><br />证件必须是清晰彩色原件电子版，可以是扫描件或者数码拍摄照片。<br />照片中需要能看清姓名、身份证号码等信息。<br />仅支持.jpg .jpeg .bmp 的图片格式。图片大小不超过2M。</h4></td>
                </tr>
                <tr>
                    <td align="right"></td>
                    <td><a href="javascript:void(0);" class="btn-orange" id="submit_cert">提交</a></td>
                </tr>
            </table>
            </form>
            <?php else: ?>
            <!--if认证通过-->
            <table class="edit-tab" style="width:700px">
            	<tr>
                	<td align="right">真实姓名/企业名称：</td>
                	<td><?php echo $this->_tpl_vars['rs']['real_name']; ?>
</td>
                </tr>
            	<tr>
               	  	<td align="right">身份证号/企业经营许可证编号：</td>
                	<td><?php echo $this->_tpl_vars['rs']['idcard']; ?>
</td>
                </tr>
            	<tr>
               	  	<td align="right">身份证正面/企业证件：</td>
                	<td><div class="card-face"><span><img src="<?php echo $this->_tpl_vars['site_url']; ?>
/<?php echo $this->_tpl_vars['rs']['id_positive']; ?>
" /></span><a href="" target="_blank">查看</a></div></td>
                </tr>
            	<tr>
                	<td align="right">身份证背面：</td>
                	<td><div class="card-face"><span><img src="<?php echo $this->_tpl_vars['site_url']; ?>
/<?php echo $this->_tpl_vars['rs']['id_back']; ?>
" /></span><a href="<?php echo $this->_tpl_vars['site_url']; ?>
/<?php echo $this->_tpl_vars['rs']['id_back']; ?>
" target="_blank">查看</a></div></td>
                </tr>
            </table>
            <?php endif; ?>
        </div>
</div>
<script src="<?php echo $this->_tpl_vars['site_url']; ?>
/statics/js/certificate.js"></script>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "footer.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>